<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="template">
<head>
    <title>车辆自检</title>
    <script src="../js/selfCheck.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/userself.css" />
    <link rel="stylesheet" type="text/css" href="../css/selfindex.css" />

</head>
<body id="orange">

<div class="container">
    <div class="content ">
        <div class="container-right" layout:fragment="content">
            <div class="crumbs">
                <ul>
                    <li><a href="/index/home">首页</a><i class="triangle-icon"></i></li>
                    <li><a href="/introduction">智能检车</a><i class="triangle-icon"></i></li>
                    <li class="active"><a href="">车辆自检</a></li>
                </ul>
            </div>
            <form id="selfForm" action="selfForm" method ="post" >
                <div class="self-checking">
                    <div class="selfproject" style="width:1000px;height:100%" th:each="self,selfStat : ${selfList}">
                        <div class="project-title" >
                            <div class="project-title-text"><img th:src="${self.spcIcon}" alt="" style="margin-top:5px;margin-left:15px;" />
                                <span th:text="${self.spcTitle}"></span>
                            </div>
                        </div>
                        <table style="width: 100%">
                            <tr>
                                <td style="width: 60%; border-right: 1px solid #d8d8d8;">
                                    <table>
                                        <tr style="height: 30px;" th:each="selfMCategory,selfMCategoryStat : ${self.selfMCategory}">
                                            <td style="width: 20px">
                                            </td>
                                            <td>
                                                <input type="hidden" name="smcId" th:value="${selfMCategory.smcId}"/>
                                                <input type="hidden" id="sprResult" name="sprResult" th:value="${selfMCategory.sprResult}"/>
                                                <a th:if="${selfMCategory.sprResult}==0"><img src="../img/ok.png" /></a>
                                                <a th:if="${selfMCategory.sprResult}==1"><img src="../img/ng.png" /></a>
                                            </td>
                                            <td style="padding-left: 5px;">
                                                <span th:text="${selfMCategory.smcTitle}"></span>

                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="width: 40%;" >
                                    <span th:if="${self.isOk}==1" th:text="${self.spcNotes}"></span>
                                </td>
                            </tr>
                        </table>
                     </div>
                </div>
                <div class="selfproject" style="width:1000px;height:100%">
                    <div class="project-title" >
                        <div class="project-title-text">
                            <button class="btn btn-sm" style="margin-left: 45%;margin-top: 5px; width: 100px;" id = "saveCheckReport">保存自检报告</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>